package com.bojiu.lawsearch.lawsearch.mapper;

import com.bojiu.lawsearch.lawsearch.model.WechatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/1 21:28
 * @Description:
 */
@Repository
@Mapper
public interface WechatUserMapper extends ObjMapper<WechatUser> {
    int getMaxId();

    /**
     * 查询工程师列表
     * @param name  昵称
     * @param province  省
     * @param city    市
     * @param label_id   标签id
     * @param state  工程师状态
     * @return
     */
    List<WechatUser> getListByEngineer(@Param("name") String name, @Param("province") String province, @Param("city") String city, @Param("label_id") String label_id, @Param("state") String state);

    List<WechatUser> getUserList(@Param("name") String name, @Param("province") String province, @Param("city") String city,@Param("type") String type);

}
